from flask import request, redirect, url_for, render_template, session, current_app
from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand

from information import create_app
from information.modules import data
app=create_app('development')

#对应用程序进行管理
manager=Manager(app)
#数据库的迁移
from information import db
migrate=Migrate(app,db) #将数据库与app进行关联
manager.add_command('db',MigrateCommand)

if __name__ == '__main__':
    manager.run()